CXX := g++
CXXFLAGS := -g -Wall -pthread -I./
LFLAGS := -lpthread -lrt

OBJS =	main.o\
		ChildrenCreationModule/ChildCreationRequestListener.o\
		DataStructures/Resource.o\
		DataStructures/FifoException.o\
		DataStructures/DlmException.o\
		CommunicationModule/DlmComm.o\
		LoggerModule/Logger.o\
		CommunicationModule/DlmInfoListener.o\
		LockManagerModule/LockManager.o\
		LockManagerModule/TimeoutManager.o\
		 

all: dlm process

dlm: $(OBJS)
	$(CXX) $(LFLAGS) $^ -o $@

process:
	$(CXX) -g process.cpp -o process

clean:
	rm dlm
	rm process
	find ./ -name "*.o" -delete
